<?php

$config = [
    'admin' => [
        [
            'id' => 1,
            'name' => 'AdminManage',
            'title' => '人员管理',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 101, 'title' => '添加', 'name' => 'adminCreate', 'type' => 2, 'pid' => 1, 'api' => '/admin/adminUsers->post'],
                ['id' => 102, 'title' => '修改', 'name' => 'adminUpdate', 'type' => 2, 'pid' => 1, 'api' => '/admin/adminUsers/*->put'],
                ['id' => 103, 'title' => '删除', 'name' => 'adminDelete', 'type' => 2, 'pid' => 1, 'api' => '/admin/adminUsers/*->delete'],
                ['id' => 104, 'title' => '列表', 'name' => 'adminIndex', 'type' => 2, 'pid' => 1, 'api' => '/admin/adminUsers->get'],
                ['id' => 105, 'title' => '操作日志', 'name' => 'adminLogIndex', 'type' => 2, 'pid' => 1, 'api' => '/admin/showLog/*->get'],
                [
                    'id' => 2,
                    'name' => 'RoleManage',
                    'title' => '角色管理',
                    'type' => 1,
                    'pid' => 0,
                    'children' => [
                        ['id' => 205, 'title' => '列表', 'name' => 'adminRoleIndex', 'type' => 2, 'pid' => 2, 'api' => '/admin/adminRoles->get'],
                        ['id' => 206, 'title' => '列表(全部)', 'name' => 'adminRoleAll', 'type' => 2, 'pid' => 2, 'api' => '/admin/adminRoles/all->get'],
                        ['id' => 207, 'title' => '添加', 'name' => 'adminRoleCreate', 'type' => 2, 'pid' => 2, 'api' => '/admin/adminRoles->post'],
                        ['id' => 208, 'title' => '修改', 'name' => 'adminRoleUpdate', 'type' => 2, 'pid' => 2, 'api' => '/admin/adminRoles/*->put'],
                        ['id' => 209, 'title' => '删除', 'name' => 'adminRoleDelete', 'type' => 2, 'pid' => 2, 'api' => '/admin/adminRoles/*->delete'],
                        ['id' => 210, 'title' => '权限列表(tree)', 'name' => 'adminMenusTree', 'type' => 2, 'pid' => 2, 'api' => '/admin/adminMenus/tree->get'],
                        ['id' => 211, 'title' => '角色权限', 'name' => 'adminRoleMenus', 'type' => 2, 'pid' => 2, 'api' => '/admin/adminRoles/*/adminMenus->get'],
                    ]
                ],
            ]
        ],
        [
            'id' => 3,
            'name' => 'PartnerManager',
            'title' => '合作商管理',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 301, 'title' => '列表', 'name' => 'cooperativeIndex', 'type' => 2, 'pid' => 3, 'api' => '/admin/cooperatives->get'],
                ['id' => 302, 'title' => '冻结', 'name' => 'cooperativeBlock', 'type' => 2, 'pid' => 3, 'api' => '/admin/cooperatives/*/block->put'],
                ['id' => 303, 'title' => '解冻', 'name' => 'cooperativeUnblock', 'type' => 2, 'pid' => 3, 'api' => '/admin/cooperatives/*/unblock->put'],
                ['id' => 304, 'title' => '获取权限', 'name' => 'cooperativeMenuIndex', 'type' => 2, 'pid' => 3, 'api' => '/admin/cooperatives/*/menus->get'],
                ['id' => 305, 'title' => '修改权限', 'name' => 'cooperativeMenuUpdate', 'type' => 2, 'pid' => 3, 'api' => '/admin/cooperatives/*/menus->put'],
                ['id' => 306, 'title' => '全部权限', 'name' => 'cooperativeMenuAll', 'type' => 2, 'pid' => 3, 'api' => '/admin/cooperatives/menuTree->get'],
            ]
        ],
        [
            'id' => 4,
            'name' => 'UserManager',
            'title' => '用户管理',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 401, 'title' => '列表', 'name' => 'userIndex', 'type' => 2, 'pid' => 4, 'api' => '/admin/users->get'],
                ['id' => 402, 'title' => '封号', 'name' => 'userBlock', 'type' => 2, 'pid' => 4, 'api' => '/admin/users/*/block->get'],
                ['id' => 403, 'title' => '解封', 'name' => 'userUnblock', 'type' => 2, 'pid' => 4, 'api' => '/admin/users/*/unblock->get'],
            ]
        ],
        [
            'id' => 5,
            'name' => 'OfferRewarderManager',
            'title' => '悬赏主管理',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 501, 'title' => '列表', 'name' => 'userEmployerIndex', 'type' => 2, 'pid' => 5, 'api' => '/admin/userEmployers->get'],
                ['id' => 502, 'title' => '封号', 'name' => 'userEmployerBlock', 'type' => 2, 'pid' => 5, 'api' => '/admin/userEmployers/*/block->put'],
                ['id' => 503, 'title' => '解封', 'name' => 'userEmployerUnblock', 'type' => 2, 'pid' => 5, 'api' => '/admin/userEmployers/*/unblock->put'],
                ['id' => 504, 'title' => '添加', 'name' => 'userEmployerCreate', 'type' => 2, 'pid' => 5, 'api' => '/admin/userEmployers->post'],
                ['id' => 505, 'title' => '设置金额', 'name' => 'userEmployerSetBalance', 'type' => 2, 'pid' => 5, 'api' => '/admin/userEmployers/*/setBalance->put'],
            ]
        ],
        [
            'id' => 6,
            'name' => 'CompanyCheck',
            'title' => '企业实名审核',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 601, 'title' => '列表', 'name' => 'certificationCompanyApplyIndex', 'type' => 2, 'pid' => 6, 'api' => '/admin/certificationCompanyApply->get'],
                ['id' => 602, 'title' => '通过', 'name' => 'certificationCompanyApplyAllow', 'type' => 2, 'pid' => 6, 'api' => '/admin/certificationCompanyApply/*/allow->put'],
                ['id' => 603, 'title' => '不通过', 'name' => 'certificationCompanyApplyNotAllow', 'type' => 2, 'pid' => 6, 'api' => '/admin/certificationCompanyApply/*/notAllow->put']
            ]
        ],
        [
            'id' => 7,
            'name' => 'TaskCheck',
            'title' => '任务审核',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 701, 'title' => '列表', 'name' => 'taskAuditIndex', 'type' => 2, 'pid' => 7, 'api' => '/admin/taskAudits->get'],
                ['id' => 702, 'title' => '通过', 'name' => 'taskAuditAllow', 'type' => 2, 'pid' => 7, 'api' => '/admin/tasks/*/allow->put'],
                ['id' => 703, 'title' => '不通过', 'name' => 'taskAuditNotAllow', 'type' => 2, 'pid' => 7, 'api' => '/admin/tasks/*/notAllow->put']
            ]
        ],
        [
            'id' => 8,
            'name' => 'TaskManager',
            'title' => '任务管理',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 801, 'title' => '列表', 'name' => 'taskIndex', 'type' => 2, 'pid' => 8, 'api' => '/admin/tasks->get'],
                ['id' => 802, 'title' => '冻结', 'name' => 'taskBlock', 'type' => 2, 'pid' => 8, 'api' => '/admin/tasks/*/block->put'],
                ['id' => 803, 'title' => '解冻', 'name' => 'taskUnblock', 'type' => 2, 'pid' => 8, 'api' => '/admin/tasks/*/unblock->put']
            ]
        ],
        [
            'id' => 9,
            'name' => 'WithdrawCheck',
            'title' => '提现审核',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 901, 'title' => '列表', 'name' => 'withdrawIndex', 'type' => 2, 'pid' => 9, 'api' => '/admin/userWithDraws->get'],
                ['id' => 902, 'title' => '确认', 'name' => 'withdrawConfirm', 'type' => 2, 'pid' => 9, 'api' => '/admin/userWithDraws/*/confirm->put'],
                ['id' => 903, 'title' => '驳回', 'name' => 'withdrawReject', 'type' => 2, 'pid' => 9, 'api' => '/admin//userWithDraws/*/reject->put'],
                ['id' => 904, 'title' => '打款', 'name' => 'withdrawTransfer', 'type' => 2, 'pid' => 9, 'api' => '/admin//userWithDraws/*/transfer->put']
            ]
        ],
        [
            'id' => 10,
            'name' => 'FinanceManager',
            'title' => '财务管理',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 1001, 'title' => '用户提现流水', 'name' => 'withdrawList', 'type' => 2, 'pid' => 10, 'api' => '/admin/withdrawList->get'],
                ['id' => 1002, 'title' => '平台抽成流水', 'name' => 'percentageList', 'type' => 2, 'pid' => 10, 'api' => '/admin/percentageList->get'],
                ['id' => 1003, 'title' => '悬赏主充值流水', 'name' => 'rechargeList', 'type' => 2, 'pid' => 10, 'api' => '/admin/rechargeList->get'],
                ['id' => 1004, 'title' => '流水导出', 'name' => 'logExport', 'type' => 2, 'pid' => 10, 'api' => '/admin/logExport->get'],
            ]
        ],
        [
            'id' => 11,
            'name' => 'publicCommon',
            'title' => '公共',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 1101, 'title' => '获取城市下合作商', 'name' => 'cooperList', 'type' => 2, 'pid' => 11, 'api' => '/admin/cooperList->get'],
                ['id' => 1102, 'title' => '获取省市列表', 'name' => 'regions', 'type' => 2, 'pid' => 11, 'api' => '/admin/regions->get'],
                ['id' => 1103, 'title' => '获取任务详情', 'name' => 'taskDetail', 'type' => 2, 'pid' => 11, 'api' => '/admin/tasks/*->get'],
                ['id' => 1104, 'title' => '上传图片', 'name' => 'adminUpload', 'type' => 2, 'pid' => 15, 'api' => '/admin/upload->post'],
                ['id' => 1105, 'title' => '查看图片', 'name' => 'viewImage', 'type' => 2, 'pid' => 15, 'api' => '/admin/view/*->get'],

            ]
        ], [
            'id' => 12,
            'name' => 'BindWxPay',
            'title' => '合作商资料审核', //合作商审核 前端要求用这个名字对应
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 1201, 'title' => '列表', 'name' => 'cooperativeAuditIndex', 'type' => 2, 'pid' => 12, 'api' => '/admin/cooperativeAudits->get'],
                ['id' => 1202, 'title' => '检验完成|驳回', 'name' => 'cooperativeAuditOperate', 'type' => 2, 'pid' => 12, 'api' => '/admin/cooperatives/*/audit->put'],
                ['id' => 1203, 'title' => '提交小程序版本审核', 'name' => 'cooperativeMpAuditSubmit', 'type' => 2, 'pid' => 12, 'api' => '/admin/cooperatives/*/submitAudit->put'],
                ['id' => 1204, 'title' => '微信Api证书下载', 'name' => 'downloadApi', 'type' => 2, 'pid' => 12, 'api' => '/admin/downloadApi/*->get'],
            ]
        ], [
            'id' => 13,
            'name' => 'OperateData',
            'title' => '运营数据',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 1301, 'title' => '汇总', 'name' => 'statistics', 'type' => 2, 'pid' => 13, 'api' => '/admin/statistics->get'],
                ['id' => 1302, 'title' => '柱状图', 'name' => 'barChart', 'type' => 2, 'pid' => 13, 'api' => '/admin/barChart->post'],
            ]
        ], [
            'id' => 14,
            'name' => 'BusinessPush',
            'title' => '商机推送',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 1401, 'title' => '列表', 'name' => 'taskPushTaskIndex', 'type' => 2, 'pid' => 14, 'api' => '/admin/taskPushes/tasks->get'],
                ['id' => 1402, 'title' => '推送历史', 'name' => 'taskPushIndex', 'type' => 2, 'pid' => 14, 'api' => '/admin/taskPushes->get'],
                ['id' => 1403, 'title' => '推送', 'name' => 'taskPushPush', 'type' => 2, 'pid' => 14, 'api' => '/admin/taskPushes/push->post'],
            ]
        ], [
            'id' => 15,
            'name' => 'AdminNotification',
            'title' => '通知',
            'type' => 1,
            'pid' => 0,
            'children' => [
                ['id' => 1601, 'title' => '通知列表(未读)', 'name' => 'notificationIndex', 'type' => 2, 'pid' => 15, 'api' => '/admin/notification->get'],
                ['id' => 1602, 'title' => '标记已读', 'name' => 'notificationRead', 'type' => 2, 'pid' => 15, 'api' => '/admin/notification/read->post'],
            ]
        ]
    ],
    'cooperative' => [
        [
            'id' => 1,
            'name' => 'Index',
            'title' => '主页',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 101, 'name' => 'bindWxMerchant', 'pid' => 1, 'title' => '绑定微信商户号', 'type' => 2, 'api' => '/cooperative/bindWxMerchant->post'],
                ['id' => 102, 'name' => 'regions', 'pid' => 1, 'title' => '省市列表', 'type' => 2, 'api' => '/cooperative/regions->get'],
                ['id' => 103, 'name' => 'cooperativeInfo', 'pid' => 1, 'title' => '获取合作商信息', 'type' => 2, 'api' => '/cooperative/info->get'],
                ['id' => 104, 'name' => 'setNoticeRead', 'pid' => 1, 'title' => '绑定微信商户号', 'type' => 2, 'api' => '/cooperative/setRead->post'],
                ['id' => 105, 'name' => 'noticeList', 'pid' => 1, 'title' => '获取系统消息', 'type' => 2, 'api' => '/cooperative/noticeList->get'],
                ['id' => 106, 'name' => 'noticeList', 'pid' => 1, 'title' => '生成小程序授权url', 'type' => 2, 'api' => '/cooperative/wxPreAuthUrl->get'],
            ]
        ],
        [
            'id' => 2,
            'name' => 'AdminManage',
            'title' => '人员管理',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 201, 'name' => 'cooperativeUserIndex', 'pid' => 2, 'title' => '人员列表', 'type' => 2, 'api' => '/cooperative/cooperativeUsers->get'],
                ['id' => 202, 'name' => 'cooperativeUserCreate', 'pid' => 2, 'title' => '添加人员', 'type' => 2, 'api' => '/cooperative/cooperativeUsers->post'],
                ['id' => 203, 'name' => 'cooperativeUserUpdate', 'pid' => 2, 'title' => '修改人员', 'type' => 2, 'api' => '/cooperative/cooperativeUsers/*->put'],
                ['id' => 204, 'name' => 'cooperativeUserDelete', 'pid' => 2, 'title' => '删除人员', 'type' => 2, 'api' => '/cooperative/cooperativeUsers/*->delete'],
                ['id' => 205, 'name' => 'cooperativeMeGet', 'pid' => 2, 'title' => '获取当前登录用户', 'type' => 2, 'api' => '/cooperative/cooperativeUsers/me->get'],
                ['id' => 206, 'name' => 'cooperativeMeSave', 'pid' => 2, 'title' => '修改当前登录用户', 'type' => 2, 'api' => '/cooperative/cooperativeUsers/me->put'],
                [
                    'id' => 9,
                    'name' => 'CooperativeRoleManage',
                    'title' => '角色管理',
                    'type' => 1,
                    'path' => '',
                    'pid' => 2,
                    'children' => [
                        ['id' => 901, 'name' => 'cooperativeRoleIndex', 'pid' => 9, 'title' => '角色列表[分页]', 'type' => 2, 'api' => '/cooperative/cooperativeRoles->get'],
                        ['id' => 902, 'name' => 'cooperativeRoleAll', 'pid' => 9, 'title' => '角色列表[全部]', 'type' => 2, 'api' => '/cooperative/cooperativeRoles/all->get'],
                        ['id' => 903, 'name' => 'cooperativeRoleCreate', 'pid' => 9, 'title' => '添加角色', 'type' => 2, 'api' => '/cooperative/cooperativeRoles->post'],
                        ['id' => 904, 'name' => 'cooperativeRoleUpdate', 'pid' => 9, 'title' => '修改角色', 'type' => 2, 'api' => '/cooperative/cooperativeRoles/*->put'],
                        ['id' => 905, 'name' => 'cooperativeRoleDelete', 'pid' => 9, 'title' => '删除角色', 'type' => 2, 'api' => '/cooperative/cooperativeRoles/*->delete'],
                    ]
                ],
            ]
        ],
        [
            'id' => 3,
            'name' => 'UserManager',
            'title' => '用户管理',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 301, 'name' => 'userIndex', 'pid' => 3, 'title' => '用户列表', 'type' => 2, 'api' => '/cooperative/users->get'],
                ['id' => 302, 'name' => 'userBlock', 'pid' => 3, 'title' => '封号', 'type' => 2, 'api' => '/cooperative/users/*/block->put'],
                ['id' => 303, 'name' => 'userUnblock', 'pid' => 3, 'title' => '解封', 'type' => 2, 'api' => '/cooperative/users/*/unblock->put']
            ]
        ],
        [
            'id' => 4,
            'name' => 'OfferRewarderManager',
            'title' => '悬赏主管理',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 401, 'name' => 'employerIndex', 'pid' => 4, 'title' => '悬赏主列表', 'type' => 2, 'api' => '/cooperative/userEmployers->get'],
                ['id' => 402, 'name' => 'employerBlock', 'pid' => 4, 'title' => '封号', 'type' => 2, 'api' => '/cooperative/userEmployers/*/block->put'],
                ['id' => 403, 'name' => 'employerUnblock', 'pid' => 4, 'title' => '解封', 'type' => 2, 'api' => '/cooperative/userEmployers/*/unblock->put'],
                ['id' => 404, 'name' => 'employerCreate', 'pid' => 4, 'title' => '添加', 'type' => 2, 'api' => '/cooperative/userEmployers->post'],
            ]
        ],
        [
            'id' => 5,
            'title' => '任务审核',
            'name' => 'TaskCheck',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 501, 'name' => 'taskAuditIndex', 'pid' => 5, 'title' => '列表', 'type' => 2, 'api' => '/cooperative/taskAudits->get'],
                ['id' => 502, 'name' => 'taskAuditAllow', 'pid' => 5, 'title' => '通过', 'type' => 2, 'api' => '/cooperative/tasks/*/allow->put'],
                ['id' => 503, 'name' => 'taskAuditNotAllow', 'pid' => 5, 'title' => '不通过', 'type' => 2, 'api' => '/cooperative/tasks/*/notAllow->put'],
                ['id' => 504, 'name' => 'taskInfo', 'pid' => 5, 'title' => '不通过', 'type' => 2, 'api' => '/cooperative/tasks/*->get '],
            ]
        ],
        [
            'id' => 6,
            'name' => 'TaskManager',
            'title' => '任务管理',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 601, 'name' => 'taskIndex', 'pid' => 6, 'title' => '列表', 'type' => 2, 'api' => '/cooperative/tasks->get'],
                ['id' => 602, 'name' => 'taskBlock', 'pid' => 6, 'title' => '冻结', 'type' => 2, 'api' => '/cooperative/tasks/*/block->put'],
                ['id' => 603, 'name' => 'taskUnblock', 'pid' => 6, 'title' => '解冻', 'type' => 2, 'api' => '/cooperative/tasks/*/unblock->put'],
            ]
        ],
        [
            'id' => 7,
            'name' => 'Arbitration',
            'title' => '仲裁',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 701, 'name' => 'arbitrationIndex', 'pid' => 7, 'title' => '列表', 'type' => 2, 'api' => '/cooperative/taskExecs->get'],
                ['id' => 702, 'name' => 'arbitrationUserWin', 'pid' => 7, 'title' => '用户胜诉', 'type' => 2, 'api' => '/cooperative/taskExecs/*/userWin->put'],
                ['id' => 703, 'name' => 'arbitrationEmployerWin', 'pid' => 7, 'title' => '悬赏主胜诉', 'type' => 2, 'api' => '/cooperative/taskExecs/*/employerWin->put'],
            ]
        ],
        [
            'id' => 8,
            'title' => '财务管理',
            'name' => 'FinanceManager',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 801, 'name' => 'rechargeList', 'pid' => 8, 'title' => '充值流水', 'type' => 2, 'api' => '/cooperative/rechargeList->get'],
                ['id' => 802, 'name' => 'withdrawList', 'pid' => 8, 'title' => '用户提现流水', 'type' => 2, 'api' => '/cooperative/withdrawList->get'],
                ['id' => 803, 'name' => 'percentageList', 'pid' => 8, 'title' => '平台抽成流水', 'type' => 2, 'api' => '/cooperative/percentageList->get'],
                ['id' => 804, 'name' => 'financeExport', 'pid' => 8, 'title' => '流水导出', 'type' => 2, 'api' => '/cooperative/financeExport->get'],
            ],
        ],
        [
            'id' => 10,
            'name' => 'WithdrawCheck',
            'title' => '提现审核',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 1001, 'name' => 'cashList', 'title' => '提现列表', 'pid' => 10, 'type' => 2, 'path' => '', 'api' => '/cooperative/cashList->get'],
                ['id' => 1002, 'name' => 'cashAck', 'title' => '确认', 'pid' => 10, 'type' => 2, 'path' => '', 'api' => '/cooperative/ack->get'],
                ['id' => 1003, 'name' => 'cashReject', 'title' => '驳回', 'pid' => 10, 'type' => 2, 'path' => '', 'api' => '/cooperative/reject->get'],
                ['id' => 1004, 'name' => 'cashPaid', 'title' => '已打款', 'pid' => 10, 'type' => 2, 'path' => '', 'api' => '/cooperative/paid->get'],
            ]
        ], [
            'id' => 11,
            'name' => 'OperateData',
            'title' => '运营数据',
            'type' => 1,
            'path' => '',
            'pid' => 0,
            'children' => [
                ['id' => 1101, 'name' => 'urgeIndex', 'title' => '汇总', 'pid' => 11, 'type' => 2, 'path' => '', 'api' => '/cooperative/statistics->get'],
                ['id' => 1102, 'name' => 'urgeIndex', 'title' => '柱状图', 'pid' => 11, 'type' => 2, 'path' => '', 'api' => '/cooperative/barChart->get'],
            ]
        ], [
            'id' => 12,
            'name' => 'UrgeCheck',
            'title' => '审核催促',
            'pid' => 0,
            'type' => 1,
            'path' => '',
            'children' => [
                ['id' => 1201, 'name' => 'urgeIndex', 'title' => '列表', 'pid' => 12, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskExecs/urgeIndex->get'],
            ]
        ], [
            'id' => 13,
            'name' => 'BusinessPush',
            'title' => '商机推送',
            'pid' => 0,
            'type' => 1,
            'path' => '',
            'children' => [
                ['id' => 1301, 'name' => 'taskPushIndex', 'title' => '列表', 'pid' => 13, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskPushes->get'],
            ]
        ], [
            'id' => 14,
            'name' => 'FirstLogin',
            'title' => '初始化配置',
            'pid' => 0,
            'type' => 1,
            'path' => '',
        ], [
            'id' => 15,
            'name' => 'HowWechatPay',
            'title' => '如何获取微信支付？',
            'pid' => 0,
            'type' => 1,
            'path' => ''
        ], [
            'id' => 16,
            'name' => 'Setting',
            'title' => '设置中心',
            'pid' => 0,
            'type' => 1,
            'path' => '',
            'children' => [
                [
                    'id' => 17,
                    'name' => 'BannerConfig',
                    'title' => 'Banner配置',
                    'pid' => 16, 'type' => 1,
                    'path' => '',
                    'children' => [
                        ['id' => 1701, 'name' => 'bannerIndex', 'title' => '列表', 'pid' => 17, 'type' => 2, 'path' => '', 'api' => '/cooperative/configBanners->get'],
                        ['id' => 1702, 'name' => 'bannerCreate', 'title' => '添加', 'pid' => 17, 'type' => 2, 'path' => '', 'api' => '/cooperative/configBanners->post'],
                        ['id' => 1703, 'name' => 'bannerUpdate', 'title' => '修改', 'pid' => 17, 'type' => 2, 'path' => '', 'api' => '/cooperative/configBanners/*->put'],
                        ['id' => 1704, 'name' => 'bannerDelete', 'title' => '删除', 'pid' => 17, 'type' => 2, 'path' => '', 'api' => '/cooperative/configBanners/*->delete'],
                        ['id' => 1705, 'name' => 'bannerBlock', 'title' => '隐藏', 'pid' => 17, 'type' => 2, 'path' => '', 'api' => '/cooperative/configBanners/block->post'],
                        ['id' => 1706, 'name' => 'bannerUnblock', 'title' => '显示', 'pid' => 17, 'type' => 2, 'path' => '', 'api' => '/cooperative/configBanners/unblock->post'],
                    ]
                ],
                [
                    'id' => 18,
                    'name' => 'TaskTagConfig',
                    'title' => '任务标签配置',
                    'pid' => 16,
                    'type' => 1,
                    'path' => '',
                    'children' => [
                        ['id' => 1801, 'name' => 'TaskTagIndex', 'title' => '列表', 'pid' => 18, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTags->get'],
                        ['id' => 1802, 'name' => 'TaskTagCreate', 'title' => '添加', 'pid' => 18, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTags->post'],
                        ['id' => 1803, 'name' => 'TaskTagUpdate', 'title' => '修改', 'pid' => 18, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTags/*->put'],
                        ['id' => 1804, 'name' => 'TaskTagDelete', 'title' => '删除', 'pid' => 18, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTags/*->delete'],
                    ]
                ],
                [
                    'id' => 19,
                    'name' => 'HomeClassConfig',
                    'title' => '首页分类入口',
                    'pid' => 16,
                    'type' => 1,
                    'path' => '',
                    'children' => [
                        ['id' => 1901, 'name' => 'TaskTypeIndex', 'title' => '列表', 'pid' => 19, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTypes->get'],
                        ['id' => 1902, 'name' => 'TaskTypeCreate', 'title' => '添加', 'pid' => 19, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTypes->post'],
                        ['id' => 1903, 'name' => 'TaskTypeUpdate', 'title' => '修改', 'pid' => 19, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTypes/*->put'],
                        ['id' => 1904, 'name' => 'TaskTypeDelete', 'title' => '删除', 'pid' => 19, 'type' => 2, 'path' => '', 'api' => '/cooperative/taskTypes/*->delete'],
                    ]
                ],
                [
                    'id' => 20,
                    'name' => 'OtherConfig',
                    'title' => '其它设置',
                    'pid' => 16,
                    'type' => 1,
                    'path' => '',
                    'children' => [
                        ['id' => 2001, 'name' => 'OtherConfigIndex', 'title' => '列表', 'pid' => 20, 'type' => 2, 'path' => '',
                            'api' => '/cooperative/configOthers->get'],
                        ['id' => 2002, 'name' => 'OtherConfigAutoPayment', 'title' => '倒计时自动打款', 'pid' => 20, 'type' => 2, 'path' => '',
                            'api' => '/cooperative/configOthers/autoPayment->put'],
                        ['id' => 2003, 'name' => 'OtherConfigCommissionPercent', 'title' => '抽成比例', 'pid' => 20, 'type' => 2, 'path' => '',
                            'api' => '/cooperative/configOthers/commissionPercent->put'],
                        ['id' => 2004, 'name' => 'OtherConfigServicePhone', 'title' => '客服电话', 'pid' => 20, 'type' => 2, 'path' => '',
                            'api' => '/cooperative/configOthers/servicePhone->put'],
                    ]
                ],
                [
                    'id' => 21,
                    'name' => 'DiscoverPageConfig',
                    'title' => '发现页配置',
                    'pid' => 16,
                    'type' => 1,
                    'path' => '',
                    'children' => [
                        ['id' => 2101, 'name' => 'ConfigDiscoverIndex', 'title' => '列表', 'pid' => 21, 'type' => 2, 'path' => '', 'api' => '/cooperative/configDiscovers->get'],
                        ['id' => 2102, 'name' => 'ConfigDiscoverCreate', 'title' => '添加', 'pid' => 21, 'type' => 2, 'path' => '', 'api' => '/cooperative/configDiscovers->post'],
                        ['id' => 2103, 'name' => 'ConfigDiscoverUpdate', 'title' => '修改', 'pid' => 21, 'type' => 2, 'path' => '', 'api' => '/cooperative/configDiscovers/*->put'],
                        ['id' => 2104, 'name' => 'ConfigDiscoverDelete', 'title' => '删除', 'pid' => 21, 'type' => 2, 'path' => '', 'api' => '/cooperative/configDiscovers/*->delete'],
                    ]
                ]
            ]
        ]
    ],
    'default_admin_user' => [
        'username' => 'admin',
        'mobile' => '18888888888',
        'password' => '123456'
    ],
    'default_admin_role' => [
        'name' => '超级管理员',
        'remark' => '系统初始管理员,拥有所有权限,请勿删除',
    ]
];

$config['cooperative_list'] = tree_to_list($config['cooperative']);

//合作商初始化时默认拥有的权限
$config['default_cooperative_role'] = [
    'name' => '超级管理员',
    'remark' => '系统初始管理员,拥有所有权限,请勿删除',
    'menus' => array_keys($config['cooperative_list'])
];

return $config;